# coding:utf-8
from ckeditor.fields import RichTextField
from django.db import models
from user.models import user
import datetime

class stuchengji(models.Model):
    num = models.IntegerField(default=100000,verbose_name="学号")
    xingming=models.CharField(max_length=20, verbose_name="姓名")
    chuqin = models.IntegerField(default=100, verbose_name="出勤")
    taidu = models.IntegerField(default=100, verbose_name="态度")
    zuoye = models.IntegerField(default=0, verbose_name="作业")
    ceyan = models.IntegerField(default=0, verbose_name="小测验")
    danyuan=models.IntegerField(default=0, verbose_name="单元考试")
    qizhong=models.IntegerField(default=0, verbose_name="期中考试")
    qimo = models.IntegerField(default=0, verbose_name="期末考试")
    kecheng=models.CharField(max_length=20, verbose_name="课程")
    CreateTime = models.DateTimeField(auto_now=True)

    def __unicode__(self):
        return self.xingming


from django.db import models
class emaillog(models.Model):
 title = models.CharField(max_length=50,verbose_name="标题")
 content = RichTextField(blank=True,null=True,verbose_name="内容")

 def __unicode__(self):
    return self.name